<?php

namespace app\admin\validate;

use think\Validate;

class Site extends Validate
{

    protected $rule =   [
        'site_name' => 'require',
        'site_url' => 'require',
        'site_type' => 'require',
        'apikey' => 'require',
        'apisecret' => 'require',
    ];

    protected $scene = [
        'edit'  =>  [],
    ];

    /**
     * 自动时间戳类型
     *
     */
    protected $autoWriteTimestamp = 'datetime';
    /**
     * 添加时间
     *
     */
    protected $createTime = 'add_time';

    /**
     * 更新时间
     *
     */
    protected $updateTime = 'update_time';
}
